package data;

import java.io.File;

import GUIMain.HomeGUI;

public class FilePath {
	public static String DIRECTORY 						= System.getProperty("user.dir");
	public static String FIELD_COLUMN_MAPPING_DIRECTORY	= HomeGUI.REPORT_CONFIG_PATH + "Mappings/";
	public static String PROFILE_LIST					= HomeGUI.REPORT_CONFIG_PATH + "profile.xml";
	public static String TEMPLATE_FOLDER_PATH			= HomeGUI.REPORT_CONFIG_PATH + "Saved Templates/";
	public static String CS_LIST						= HomeGUI.REPORT_CONFIG_PATH + "csList.xml";
	public static String REMINDER_LIST					= HomeGUI.REPORT_CONFIG_PATH + "emailReminder.xml";
	public static String SALES_LIST						= HomeGUI.REPORT_CONFIG_PATH + "salesList.xml";
	public static String SPLASH_IMAGE					= HomeGUI.REPORT_CONFIG_PATH + "bg.jpg";
	public static String CONFIG_FILE					= HomeGUI.REPORT_CONFIG_PATH + "config.cfg"; 
	public static String ERROR_LOG_DIR					= HomeGUI.REPORT_CONFIG_PATH + "Error Logs/";
	public static String PORT_LIST 						= HomeGUI.REPORT_CONFIG_PATH + "PortList.xls";
	public static void initialize(){
		File dir = new File(TEMPLATE_FOLDER_PATH);
		if(!dir.exists()){
			dir.mkdirs();
		}
		dir = new File(FIELD_COLUMN_MAPPING_DIRECTORY);
		if(!dir.exists()){
			dir.mkdirs();
		}
		dir = new File(ERROR_LOG_DIR);
		if(!dir.exists()){
			dir.mkdirs();
		}
	}
}
